<?php 
namespace Member\Controller;

class WebsiteController extends ManageController {
	
	function index($appid) {
		if (IS_POST) {
			$model = D('WebSite');
			$model->create();
			if ($model->save()) {
				$this->success('保存成功！');
			}else {
				$this->error('保存失败！');
			}
		}else {
			$model = M('WebSite');
			$info = $model->find($appid);
			$this->assign('info', $info);
			$this->title('网站设置');
			$this->display();
		}
	}
	
	
	
	
}